<div class="row" style="margin: 0px">
	<div class="col-sm-12 mt-3" style="border-bottom: 10px solid #f7f8f9;padding-bottom: 1rem;">
		<h4 style="text-align: center;color: #17a2b8;margin-bottom: 0;">- 入库管理 -</h4>
	</div>
</div>
<div class="row" style="margin-left: 0px; margin-right: 0px; background-color: white;">
	<div class="col-sm-3 mt-3">
		<div class="input-group input-group-sm">
			<div class="input-group-prepend">
				<div class="input-group-text">账外账内</div>
			</div>
			<select class="form-control" x-ng-model="storeSearchObj.type_account">
				<option value="">请选择</option>
				<option value="OUT">账外</option>
				<option value="IN">账内</option>
			</select>
		</div>
	</div>
	<div class="col-sm-3 mt-3">
		<div class="input-group input-group-sm">
			<div class="input-group-prepend">
				<div class="input-group-text">冲销/实际</div>
			</div>
			<select class="form-control" x-ng-model="storeSearchObj.type">
				<option value="">请选择</option>
				<option value="IN">实际</option>
				<option value="BALANCE">冲销</option>
			</select>
		</div>
	</div>
	<div class="col-sm-3 mt-3">
		<div class="input-group input-group-sm">
			<div class="input-group-prepend">
				<div class="input-group-text">自建/同步</div>
			</div>
			<select class="form-control" x-ng-model="storeSearchObj.type_from">
				<option value="">请选择</option>
				<option value="IN">自建</option>
				<option value="OUT">同步</option>
			</select>
		</div>
	</div>
	<div class="col-sm-3 mt-3">
		<div class="input-group input-group-sm">
			<div class="input-group-prepend">
				<div class="input-group-text">状态</div>
			</div>
			<select class="form-control" x-ng-model="storeSearchObj.status">
				<option value="">请选择</option>
				<option value="INIT">未完成</option>
				<!--<option value="DOING">处理中</option>-->
				<option value="DONE">已完成</option>
				<option value="BINDED">已绑定</option>
				<option value="BALANCED">已冲销</option>
				<option value="CANCEL">已取消</option>
			</select>
		</div>
	</div>
	<div class="col-sm-12 mt-3 mb-3">
		<button x-ng-click="search();" title="搜索" type="button" class="btn btn-sm btn-outline-primary btn-block" style="display: block;width: 100%;margin: 2px;
			border-color: rgba(23,162,184,0.8);background-color: rgba(23,162,184,0.1) ;">
			<i class="fas fa-search" style="color: rgba(23,162,184,1)">&nbsp;搜索</i>
		</button>
	</div>
</div>
<div id="tableDemo" class="row" style="margin-left: 0px; margin-right: 0px; background-color: white;">
</div>

<!-- 入库单查看 -->
<div class="modal" id="viewStoreModal" tabindex="-1">
	<div class="modal-dialog modal-dialog-centered">
		<div class="modal-content">
			<div class="modal-header">
				<h5 class="modal-title">入库单详情</h5>
				<button type="button" class="close" ng-click="hide()">
					<span aria-hidden="true">&times;</span>
				</button>
			</div>
			<div class="modal-body">
				<div class="row" style="margin-left: 0px; margin-right: 0px; background-color: white;">
					<table x-ng-repeat="viewRecord in storeRecordViewList" class="table table-sm table-hover table-bordered">
						<tbody>
							<tr>
								<td style="vertical-align: middle;width:20%">CP号</td>
								<td style="vertical-align: middle;">{{viewRecord.sp_code}}</td>
							</tr>
							<tr>
								<td style="vertical-align: middle;width:20%">自定义分类名称</td>
								<td style="vertical-align: middle;">{{viewRecord.sp_name}}</td>
							</tr>
							<tr>
								<td style="vertical-align: middle;">批次号</td>
								<td style="vertical-align: middle;">{{viewRecord.batch_code}}</td>
							</tr>
							<tr>
								<td style="vertical-align: middle;">类型</td>
								<td style="vertical-align: middle;">{{(viewRecord.type === 'WEIGHT') ? '称重' : (viewRecord.type === 'QR' ? '二维码' : 'RFID')}}</td>
							</tr>
							<tr>
								<td style="vertical-align: middle;">数量</td>
								<td style="vertical-align: middle;">{{viewRecord.num}}</td>
							</tr>
							<tr>
								<td style="vertical-align: middle;">货架/货位</td>
								<td style="vertical-align: middle;word-break: break-all;">{{viewRecord.shelf_show_info}}</td>
							</tr>
							<tr x-ng-show="viewRecord.type === 'WEIGHT'">
								<td style="vertical-align: middle;">秤/物料盒</td>
								<td style="vertical-align: middle;word-break: break-all;">{{viewRecord.weight_show_info}}</td>
							</tr>
							<tr x-ng-show="viewRecord.type === 'RFID'">
								<td style="vertical-align: middle;">已选RFID</td>
								<td style="vertical-align: middle;word-break: break-all;">{{viewRecord.rfid_show_info}}</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-sm btn-default" ng-click="hide()">
					<i class="fas fa-check"></i>
				</button>
			</div>
		</div>
	</div>
</div>